﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace ScrumTracker.Models
{
    public class StoryMetadata
    {
        [HiddenInput(DisplayValue = false)]
        public int ProductId { get; set; }
        [HiddenInput(DisplayValue = false)]
        public int SprintId { get; set; }
        [ScaffoldColumn(false)]
        public int IssueId { get; set; }
        [ScaffoldColumn(false)]
        public int IssueType { get; set; }
        [Display(Order = 2)]
        [Required(AllowEmptyStrings = false)]
        [DataType(DataType.MultilineText)]
        //[AdditionalMetadata("class", "description-display")]
        //[UIHint("_Description")]
        public string Description { get; set; }
        [ScaffoldColumn(false)]
        public int CreatedBy { get; set; }
        [ScaffoldColumn(false)]
        public DateTime CreatedAt { get; set; }
        [Display(Order = 3)]
        public int Priority { get; set; }
        [ScaffoldColumn(false)]
        public bool IsDeleted { get; set; }
        [Display(Name = "Assignee", Order = 2)]
        [UIHint("AssigneeId")]
        public int AssigneeId { get; set; }
        [Display(Name = "Story Type", Order = 1)]
        [UIHint("StoryType")]
        public byte StoryType { get; set; }
    }
}